package thread;

public class MyRunnable implements Runnable {
    private String name = "";

    //线程体run()
    @Override
    public void run() {
        //执行线程的任务
        for (int i = 0; i < 10; i++) {
            System.out.println(Thread.currentThread().getName() + i);
        }
    }
}
